package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.AppVersionService;
import com.it.park.dao.AppVersionMapper;
import com.it.park.model.AppVersion;

@Service("appVersionService")
public class AppVersionServiceImpl extends BaseServiceImpl<AppVersion> implements AppVersionService {
	
	@Autowired
	private AppVersionMapper appVersionMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return appVersionMapper.deleteByPrimaryKey(id)==1;
	}

	@Override
	public boolean insert(AppVersion record) {
		return appVersionMapper.insert(record)==1;
	}

	@Override
	public boolean insertSelective(AppVersion record) {
		return appVersionMapper.insertSelective(record)==1;
	}

	@Override
	public AppVersion selectByPrimaryKey(Integer id) {
		return appVersionMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(AppVersion record) {
		return appVersionMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKeyWithBLOBs(AppVersion record) {
		return appVersionMapper.updateByPrimaryKeyWithBLOBs(record)==1;
	}

	@Override
	public boolean updateByPrimaryKey(AppVersion record) {
		return appVersionMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<AppVersion> selectAll() {
		return appVersionMapper.selectAll();
	}

	@Override
	public List<AppVersion> selectPagination(Map<String, Object> map) {
		return appVersionMapper.selectPagination(map);
	}

	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return appVersionMapper.selectTotal(map);
	}

	@Override
	public AppVersion selectLatestVersion() {
		return appVersionMapper.selectLatestVersion();
	}

	@Override
	public Integer selectTotalDown() {
		return appVersionMapper.selectTotalDown();
	}

	@Override
	public List<AppVersion> selectPagination(AppVersion t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer selectTotal(AppVersion t) {
		// TODO Auto-generated method stub
		return null;
	}

	

}
